class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string   "name"
      t.text     "desc"
      t.string   "img_url"
      t.decimal  "price",      :precision => 8, :scale => 2, :default => 0.0
      
      t.timestamps
    end
  end

  def self.down
     drop_table :products
  end
end
